package com.crystal.jcms.utils;

import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.widget.Toast;

public class ShowMsgUtils {
	public static void ShowToast(Context mContext,String msg){
		Toast.makeText(mContext, msg, Toast.LENGTH_LONG).show();
	}
	
	public static void ShowMessage(Context mContext,String msg){
		AlertDialog.Builder alertBuilder = new AlertDialog.Builder(mContext);
		alertBuilder.setTitle("提示");
		alertBuilder.setMessage(msg);
		alertBuilder.setCancelable(false);
		alertBuilder.setPositiveButton("确定", new DialogInterface.OnClickListener() {
			@Override
			public void onClick(DialogInterface dialog, int which) {
				dialog.dismiss();
			}
		});
		alertBuilder.show();
	}
}
